package com.sunwayworld.basemodule.samplemanage.samplecodegenerate.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.samplemanage.samplecodegenerate.bean.LimsSamplecodeGenerateBean;
import com.sunwayworld.basemodule.samplemanage.samplecodegenerate.service.LimsSamplecodeGenerateService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/secure/baseline/samplemanage/samplecode-generates")
public interface LimsSamplecodeGenerateResource extends GenericResource<LimsSamplecodeGenerateService, LimsSamplecodeGenerateBean, Long>, GenericChoosableResource<LimsSamplecodeGenerateService, LimsSamplecodeGenerateBean, Long> {

    @PostMapping(value = "/generate-samplecode")
    JSONObject generateSampleCode(RestJsonWrapperBean jsonWrapperBean);
}
